<?php
/**
 * Created by PhpStorm.
 * User: pc
 * Date: 2018/4/11
 * Time: 16:54
 */

namespace Index\ViewModel;

use Think\Model\ViewModel;
class UserquotalistViewModel extends ViewModel
{
    protected $connection = 'DB';   //
    protected $viewFields = array(
        //
        'chat_userquota' => array('id', 'user_uid', 'current_gold','target_gold', 'content', 'state', 'ptime', 'ctime', 'app_flag', '_type' => 'left'),
        //
        'chat_userinfo' => array('user_id', 'user_logo', 'user_name', 'user_sex', 'user_phone', 'user_birthday', 'user_profession', 'user_describe', 'user_tag', 'user_address', 'user_gold', 'user_flag', 'is_recommend', 'user_vip', 'is_active', 'is_hot', 'ftime', '_on' => 'chat_userquota.user_uid=chat_userinfo.user_uid')
    );

}